 {include file="public/header" /}
 <body class="gray-bg">
 <div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
        <div class="form-group"> 
            <div class="col-sm-12">
                <div class="ibox-content">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">账户ID：</label>
                        <div class="col-sm-9">
                            <input type="text" readonly class="form-control" value="{$name.id}" size="12">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">账户总金币：</label>
                        <div class="col-sm-9">
                            <input type="text" readonly class="form-control" value="{$name.volley}" size="12">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">账户赠送金币：</label>
                        <div class="col-sm-9">
                            <input type="text" readonly class="form-control" value="{$name.volley_gift}" size="12">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">账户积分：</label>
                        <div class="col-sm-9">
                            <input type="text" readonly class="form-control" value="{$name.score}" size="12">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">账户豆豆：</label>
                        <div class="col-sm-9">
                            <input type="text" readonly class="form-control" value="{$name.beans}" size="12">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">类型：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" value="1" name="toward" checked>增加
                                </label>
                                <label>
                                    <input type="radio" value="0" name="toward">扣除
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" style="color:red;font-weight:bold;">编辑方向：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label style="color:blue;"><input type="radio" value="1" name="gateway" checked>金币<b>(男)</b></label>
                                <label style="color:blue;"><input type="radio" value="3" name="gateway">赠送金币<b>(男)</b></label>
                                <label style="color:green;"><input type="radio" value="2" name="gateway">积分</label>
                                <label style="color:red;"><input type="radio" value="4" name="gateway">豆豆<b>(女)</b></label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">金额<span style="color: red;"> *</span>：</label>
                        <div class="col-sm-9">
                            <input name="price" type="text" class="form-control" value="" onkeyup="num(this)" size="12">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">说明<span style="color: red;"> *</span>：</label>
                        <div class="col-sm-9">
                            <input name="content" type="text" class="form-control" value="" placeholder="必填，非充值类增加、扣除，请务必不要包含'充值'2字">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">注意事项：</label>
                        <div class="col-sm-9">
                            <p class="tip">务必核对好充值类型、发放额度（兑换比例）等信息。</p>
                            <p class="tip">说明必填，尽量要做到规范统一，方便追查。非充值类增加、扣除，请务必不要包含'充值'2字,否则将计入用户的充值统计中。</p>
                        </div>
                    </div>
                    <style>
                        .tip{
                            line-height: 35px;
                            color: red;
                        }
                    </style>
                </div>
            </div>
        </form>
    </div>
</div>

{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
$(document).ready(function(){
    $(document).ready(function () {
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    });
    // $('#urlid').click(function(){
    //     if ($(this).is(':checked')) {
    //         $('#urltext').removeAttr("disabled");
    //     }else{
    //         $('#urltext').attr({"disabled":"disabled"});
    //     }
    // })
});
function msg(){
    layer.msg("上传成功")
}
function num(obj){
obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字
obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个, 清除多余的
obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
}
</script>
{include file="public/bottom" /}

